import request from '@/utils/request'

// 查询基金设立列表
export function listWfFundEstablish(query) {
  return request({
    url: '/establish/wfFundEstablish/list',
    method: 'get',
    params: query
  })
}

// 查询基金设立详细
export function getWfFundEstablish(id) {
  return request({
    url: '/establish/wfFundEstablish/' + id,
    method: 'get'
  })
}
// 查询基金设立最新详细
export function getWfFundEstablishByFundId(fundId) {
  return request({
    url: '/establish/wfFundEstablish/getByFundId/' + fundId,
    method: 'get'
  })
}

// 保存基金设立
export function saveWfFundEstablish(data) {
  return request({
    url: '/establish/wfFundEstablish/save',
    method: 'post',
    data: data
  })
}

// 删除基金设立
export function delWfFundEstablish(id) {
  return request({
    url: '/establish/wfFundEstablish/' + id,
    method: 'delete'
  })
}
